#include <QCoreApplication>
#include <QTextCodec>

#include "SqlInterface.h"
#include "Watcher.h"

int main(int argc, char *argv[])
{
    QTextCodec *codec = QTextCodec::codecForName("UTF8");
    QTextCodec::setCodecForTr(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForLocale(codec);

    QCoreApplication app(argc, argv);

    SqlInterface::addConnectDB();
    SqlInterface::createDB();
    SqlInterface::fillDB();

    qDebug() << "run watcher";
    Watcher watcher;
    watcher.start();

    return app.exec();
}
